<%@page import="com.fiap.seguranca.bean.Usuario"%>
<%@page import="com.fiap.seguranca.dao.UsuarioDaoImpl"%>
<%@page import="com.fiap.seguranca.dao.UsuarioDao"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<link rel="stylesheet" type="text/css" href="../css/format.basic.css" media="screen, projection" />
		<link rel="stylesheet" type="text/css" href="../css/format.form.login.css" media="screen, projection" />
		<link rel="stylesheet" type="text/css" href="../css/format.layout.login.css" media="screen, projection" />
		<link rel="stylesheet" type="text/css" href="../css/format.form.validacao.css" media="screen, projection" />
		<link rel="stylesheet" type="text/css" href="../css/jquery.tablesorter.css" media="screen, projection" />
		<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="../js/jquery.tablesorter.js"></script>
		<script type="text/javascript" src="../js/jquery.tablesorter.param.js"></script>
		<title></title>
	</head>
<body>

	<% UsuarioDao dao = new UsuarioDaoImpl(); %>
	<% List<Usuario> listaUsuario = dao.lista();%>

	<jsp:include page="../menu.jsp" />
	
	<table summary="text" width="50%" frame="box" border="0" id="areaGridLista" cellspacing="2" cellpadding="0" class="areaGridListaPaginacao">
		<thead>
			<tr>
				<td colspan="7" class="txtTituloGrid">Lista</td>
			</tr>
			</thead>
				<tbody>
					<tr>
						<th width="8%">Login</th>
						<th width="27%">Nome</th>
						<th width="7%">Email</th>
						<th width="13%">Funcao</th>
					</tr>
				
						<%  for(Usuario user : listaUsuario){ %>
				
							<tr>
								<td class="classificado"><%= user.getLogin()%></td>
								<td class="classificado"><%= user.getNome()%></td>
								<td class="classificado"><%= user.getEmail()%></td>
								<td class="classificado"><%= user.getFuncao()%></td>
							</tr>
				
					<%}%>

			</tbody>
	</table><p></p>
</body>
</html>